﻿using Heroius.Extension;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace Heroius.Abacus
{
    public class RecordEntity
    {
        public Color Color { get; set; }
        public string Text { get; set; }
    }

    public class OpEntity
    {
        public string OpName { get; set; }
        public string Description { get; set; }

        public string Display
        {
            get
            {
                if (string.IsNullOrWhiteSpace(Description))
                {
                    return OpName;
                }
                else return Description;
            }
        }
    }

    public class VarEntity: ObservableEntity
    {
        public string Key { get { return _key; } set { _key = value; RaisePropertyChangedEvent("Key"); } } string _key;
        public string Value { get { return _value; } set { _value = value; RaisePropertyChangedEvent("Value"); } } string _value;
    }
}
